
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Javascript Calculator</title>

    <script src="../../thirdparty/uglifyjs.1.2.5.js" type="text/javascript"></script>
    <script src="../../src/analysis.js" type="text/javascript"></script>
    <script src="../../src/instrument.js" type="text/javascript"></script>

    <link rel="stylesheet" media="screen, print, handheld" type="text/css" href="calculator.css" />
</head>
<body>
<table class="calculator" id="calc">
    <tr>
        <td colspan="4" class="calc_td_result">
            <input type="text" readonly="readonly" name="calc_result" id="calc_result" class="calc_result" onkeydown="javascript:key_detect_calc('calc',event);" />
        </td>
    </tr>
    <tr>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="CE" onclick="javascript:f_calc('calc','ce');" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="&larr;" onclick="javascript:f_calc('calc','nbs');" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="%" onclick="javascript:f_calc('calc','%');" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="+" onclick="javascript:f_calc('calc','+');" />
        </td>
    </tr>
    <tr>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="7" onclick="javascript:add_calc('calc',7);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="8" onclick="javascript:add_calc('calc',8);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="9" onclick="javascript:add_calc('calc',9);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="-" onclick="javascript:f_calc('calc','-');" />
        </td>
    </tr>
    <tr>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="4" onclick="javascript:add_calc('calc',4);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="5" onclick="javascript:add_calc('calc',5);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="6" onclick="javascript:add_calc('calc',6);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="x" onclick="javascript:f_calc('calc','*');" />
        </td>
    </tr>
    <tr>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="1" onclick="javascript:add_calc('calc',1);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="2" onclick="javascript:add_calc('calc',2);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="3" onclick="javascript:add_calc('calc',3);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="&divide;" onclick="javascript:f_calc('calc','');" />
        </td>
    </tr>
    <tr>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="0" onclick="javascript:add_calc('calc',0);" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="&plusmn;" onclick="javascript:f_calc('calc','+-');" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="," onclick="javascript:add_calc('calc','.');" />
        </td>
        <td class="calc_td_btn">
            <input type="button" class="calc_btn" value="=" onclick="javascript:f_calc('calc','=');" />
        </td>
    </tr>
</table>
<script type="text/javascript" src="calculator_jalangi_.js"></script>
</body>
</html>
